function MinClassBox(strMinValue,SpanID,SelectName,FieldValue)
{
	
	if(strMinValue=="")
	{
		SpanID.innerHTML="";
		return;
	}
	var ArrMinClass,MinClass,strSelect,strSelected;
	strSelected="";
	strSelect="";
	if(strMinValue.indexOf(",")>0)
	{
		ArrMinClass=strMinValue.split(",");
	}
	else
	{
		var ArrMinClass=new Array(1);
		ArrMinClass[0]=strMinValue;
	}
		
	for(i=0;i<ArrMinClass.length;i++)
	{
		
		FieldValue_arr=	ArrMinClass[i].split("|");
		
		if(FieldValue==FieldValue_arr[0])	
		{
			strSelected="selected='selected'";
		}
		else
		{
			strSelected="";
		}
		
		strSelect=strSelect + "<option  " +  strSelected +  " value='" +  FieldValue_arr[0]+  "'>" +  FieldValue_arr[1] +  "</option>";
		
	}
	SpanID.innerHTML="　<select name='"+SelectName +"' >" +strSelect + "</select>";
	
}
